import { createContext } from "react"
import { MenuProps } from "./interface"

export const MenuContext = createContext<Pick<MenuProps, "mode" | "theme" | "collapse" | "levelIndent" | "inDropdown" | "selectedKeys" | "openKeys" | "icons" | "triggerProps" | "tooltipProps" | "autoScrollIntoView" | "scrollConfig" | "onClickMenuItem" | "onClickSubMenu"> & { id?: string; prefixCls?: string }>({});